#include "Thread.cc"

using namespace ThreadMoudle;

void print(const std::string& name)
{
    std::cout << "hello world" << std::endl;
}

int main()
{
    Thread t("thread-1" , print);

    t.start();

    std::cout<<t.name()<<" " << t.status() << std::endl;
    sleep(1);

    t.stop();

    t.join();
    std::cout << "join done " << std::endl;
    return 0;
}